﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hi_Baidu.Entry.CollectionObject
{
    public class Item : IItemProcess, IMetaData
    {
        public Item(String Key, String Name)
        {
            this.key = Key;
            this.name = Name;
        }

        #region 分组属性

        private String name;

        /// <summary>
        ///     分组名称
        /// </summary>
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        #endregion

        #region IItemProcess 成员

        public void UpdateName(string newName)
        {
            this.name = newName;
        }

        public Friend[] GetMember()
        {
            throw new NotImplementedException();
        }

        #endregion

        #region IMetaData 成员

        private String key;
        public string Key
        {
            get
            {
                return key;
            }
            set
            {
                key = value;
            }
        }

        #endregion
    }
}
